package mygame;

import com.jme3.asset.AssetManager;
import com.jme3.material.Material;
import com.jme3.math.ColorRGBA;
import com.jme3.scene.Geometry;
import com.jme3.scene.shape.Quad;

/**
 *
 * @author Xinchro
 */
public class NumberHover {

    private Quad quad;
    private Geometry plane;
    
    public NumberHover(Main main, AssetManager asMan, String fileLoc){
	quad = new Quad(5,5);
	plane = new Geometry("plane", quad);
	
	Material mat = new Material(asMan, "Common/MatDefs/Misc/Unshaded.j3md");
	mat.setTexture("ColorMap", asMan.loadTexture(fileLoc));
	mat.setColor("Color", ColorRGBA.White);
	
	plane.setMaterial(mat);
    }
    
    public Geometry getPlane(){
	return plane;
    }
}
